<template>
  <div id="die">
    <p>我是你爹{{ laozi }}</p>
    <div id="ez">我是你儿子{{ erzi }}</div>
    <div>
      <p>{{ age > 19 ? cn : wcn  }}</p>
      <p>{{age+2}}刚成年</p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      age: 126,
      laozi: '老子',
      erzi: '小子',
      wcn: '未成年',
      cn: '成年',
    }
  },
}
</script>

<style scoped lang="less">
#die {
  color: brown;
  #ez {
    color: aqua;
  }
}
</style>
